Remove xstrrstr and BASE_STRUCT from defs.h
authorRobert Lipe <robertlipe@gpsbabel.org>
Thu, 20 Dec 2018 04:19:40 +0000 (22:19 -0600)
committerRobert Lipe <robertlipe@gpsbabel.org>
Thu, 20 Dec 2018 04:19:40 +0000 (22:19 -0600)
defs.h

diff --git a/defs.h b/defs.h
index b0df8e74357ffe0570b7c261fc7f881cb4483687..b0d493b0e35f4f359a59838cc0c7c5e0600b97b9 100644 (file)
--- a/defs.h
+++ b/defs.h
  */
 
 
-#define BASE_STRUCT(memberp, struct_type, member_name) \
-   ((struct_type *)((char *)(memberp) - offsetof(struct_type, member_name)))
-
 /*
  * Define globally on which kind of data gpsbabel is working.
  * Important for "file types" that are essentially a communication
@@ -1016,7 +1013,7 @@ QString strenquote(const QString& str, const QChar quot_char);
 
 char* strsub(const char* s, const char* search, const char* replace);
 char* gstrsub(const char* s, const char* search, const char* replace);
-const char* xstrrstr(const char* s1, const char* s2);
+
 void rtrim(char* s);
 char* lrtrim(char* buff);
 int xasprintf(char** strp, const char* fmt, ...) PRINTFLIKE(2, 3);